﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="Product_View.aspx.cs" Inherits="Product_View" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server">
    <style type="text/css">
        .style3
        {
        }
        .style4
        {
            width: 433px;
        }
        .style7
        {
            width: 433px;
            height: 31px;
        }
        .style12
        {
            width: 466px;
        }
        .style13
        {
            height: 31px;
        }
        .style14
        {
            width: 541px;
        }
        .style16
        {
            width: 92px;
            height: 31px;
        }
        .style19
        {
            width: 407px;
        }
        .style20
        {
            width: 407px;
            height: 31px;
        }
        .style22
        {
            width: 128px;
        }
        .style23
        {
            width: 128px;
            height: 31px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    &nbsp;<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
    <table border="0";>
    <tr>
        <td class="style12">
            &nbsp;</td>
        <td class="style14">
            &nbsp;</td>
        <td class="style4">
            &nbsp;</td>
        <td class="style4">
            <asp:ImageButton ID="ImageButton2" runat="server" Height="31px" 
                ImageUrl="~/Image/cart_logo.png" PostBackUrl="~/Your_Cart.aspx" 
                Width="33px" />
            <asp:Label ID="Label1" runat="server" Font-Italic="True" ForeColor="#339966" 
                Text="Check your cart"></asp:Label>
        </td>
        <td class="style22">
            &nbsp;</td>
        <td class="style19">
            <asp:Label ID="loginuser" runat="server" Font-Bold="True" Font-Italic="True" 
                ForeColor="Black"></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="style13" colspan="2">
        &nbsp;
        </td>
        <td class="style7">
            &nbsp;</td>
        <td class="style16">
            &nbsp;</td>
        <td class="style23">
            <asp:Label ID="Label2" runat="server" ForeColor="Black" Text="Select Category"></asp:Label>
        </td>
        <td class="style20">
            <telerik:RadComboBox ID="SelectCategoryCombo" Runat="server" 
                DataSourceID="SqlDataSource2" DataTextField="Cat_Name" DataValueField="Cat_ID" 
                Skin="Telerik" AutoPostBack="True" 
                onselectedindexchanged="SelectCategoryCombo_SelectedIndexChanged">
            </telerik:RadComboBox>
        </td>
    </tr>
    <tr>
        <td colspan="3">
            &nbsp;</td>
        <td class="style3" colspan="3">
            <asp:DataList ID="DataList1" runat="server" DataKeyField="Pro_ID" 
                DataSourceID="SqlDataSource1" RepeatColumns="4" 
                RepeatDirection="Horizontal" BackColor="White" BorderColor="#CCCCCC" 
                BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" 
                GridLines="Horizontal" Width="880px">
                <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                <ItemTemplate>
                    Pro_ID:
                    <asp:Label ID="Pro_IDLabel" runat="server" Text='<%# Eval("Pro_ID") %>' />
                    <br />
                    Code:
                    <asp:Label ID="CodeLabel" runat="server" Text='<%# Eval("Code") %>' />
                    <br />
                    Pro_Name:
                    <asp:Label ID="Pro_NameLabel" runat="server" Text='<%# Eval("Pro_Name") %>' />
                    <br />
                    Pro_Price:
                    <asp:Label ID="Pro_PriceLabel" runat="server" Text='<%# Eval("Pro_Price") %>' />
                    <br />
                    <br />
                    <asp:ImageButton ID="ImageButton3" runat="server" Height="123px" 
                        ImageUrl='<%# Eval("Pro_Image","image_Fr\\{0}") %>' 
                        PostBackUrl='<%# Eval("Pro_ID","ProductDetails.aspx?PID={0}") %>' 
                        Width="158px" />
                    <br />
                </ItemTemplate>
                <SelectedItemStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
            </asp:DataList>
            </td>
    </tr>
    <tr>
        <td colspan="6">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:BestlifeDBConnectionString1 %>" 
                
                
                SelectCommand="SELECT [Pro_ID], [Code], [Description], [Pro_Name], [Pro_Price], [Point_Value], [Pro_Image], [Cat_ID], [Business_Value] FROM [Tbl_Product] WHERE ([Cat_ID] = @Cat_ID)">
                <SelectParameters>
                    <asp:ControlParameter ControlID="SelectCategoryCombo" Name="Cat_ID" 
                        PropertyName="SelectedValue" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                ConnectionString="<%$ ConnectionStrings:BestlifeDBConnectionString1 %>" 
                SelectCommand="SELECT [Cat_ID], [Cat_Name] FROM [Tbl_Category]"></asp:SqlDataSource>
        </td>
    </tr>
</table>
</asp:Content>

